package beans;

/**
 * @author roze
 *
 */
public class PlaylistMorceau {

	private Playlist playlist;
	private Morceau morceau;
	private String ordre;
	private Boolean isLecture;
	
	
	
	/**
	 * @param playlist
	 * @param morceau
	 * @param ordre
	 * @param isLecture
	 */
	public PlaylistMorceau(Playlist playlist, Morceau morceau, String ordre,
			Boolean isLecture) {
		super();
		this.playlist = playlist;
		this.morceau = morceau;
		this.ordre = ordre;
		this.isLecture = isLecture;
	}
	
	
	
	public PlaylistMorceau() {
		super();
	}



	/**
	 * @return la playlist
	 */
	public Playlist getPlaylist() {
		return playlist;
	}
	
	/**
	 * @param playlist
	 */
	public void setPlaylist(Playlist playlist) {
		this.playlist = playlist;
	}
	
	/**
	 * @return le morceau de la playlist
	 */
	public Morceau getMorceau() {
		return morceau;
	}
	
	/**
	 * @param morceau
	 */
	public void setMorceau(Morceau morceau) {
		this.morceau = morceau;
	}
	
	/**
	 * @return l'ordre de lecture de la playlist
	 */
	public String getOrdre() {
		return ordre;
	}
	
	/**
	 * @param ordre
	 */
	public void setOrdre(String ordre) {
		this.ordre = ordre;
	}
	
	/**
	 * @return si le morceau est en mode lecture ou non
	 */
	public Boolean getIsLecture() {
		return isLecture;
	}
	
	/**
	 * @param isLecture
	 */
	public void setIsLecture(Boolean isLecture) {
		this.isLecture = isLecture;
	}
	
	
	@Override
	public String toString() {
		return "PlaylistMorceau [playlist=" + playlist + ", morceau=" + morceau
				+ ", ordre=" + ordre + ", isLecture=" + isLecture + "]";
	}
	

}
